/*
 * @Author: zhangweinan
 * @Date: 2022-11-25 14:12:26
 * @LastEditors: zhangweinan
 * @LastEditTime: 2022-12-05 15:18:37
 * @Description: file content
 * @FilePath: \front-end-of-task-center\src\api\enterprise\info.js
 */
import request from '@/utils/request'

// 获取企业token
export function getEnterpriseTokenByUserInfo(data) {
  return request({
    url: `/enterprise-do/getEnterpriseTokenByUserInfo/${data}`,
    method: 'post'
  })
}

// 获取企业信息列表
export function getEnterpriseList(params) {
  return request({
    url: `/enterprise-do/list`,
    method: 'get',
    params
  })
}

// 创建企业基本信息
export function createEnterpriseInfo(data) {
  return request({
    url: `/enterprise-do/create`,
    method: 'post',
    data
  })
}

// 删除企业基本信息
export function deleteEnterpriseInfo(id) {
  return request({
    url: `/enterprise-do/delete?id=` + id,
    method: 'delete',
  })
}

// 创建企业基本信息
export function updateEnterpriseInfo(data) {
  return request({
    url: `/enterprise-do/update`,
    method: 'put',
    data
  })
}

// 获取通知详情
export function getNoticeDetail(params) {
  return request({
    url: '/enterprise-do/get',
    method: 'get',
    params,
  });
}
